#导包
import requests

#准备测试数据
url = "https://www.baidu.com"

#发请求，保存返回结果
response = requests.get(url)

#打印返回结果
print(response.status_code) #返回码
print(response.text)  #返回文本
